import React from 'react';
import { Link } from 'umi';
import styles from './WarningInfoStatic.less';

/**
 * Created by Well
 * Date-Time: 2022-02-19
 * E-mail: well634890@126.com
 */

export default ({ data = [] }) => (
  <div className={styles.warning}>
    {data.map((item) => (
      <Link className={styles.warningItem} to={`/`}>
        <div>{item.value}</div>
        <div>{item.label}</div>
      </Link>
    ))}
  </div>
);
